<%@page import="weaver.workflow.workflow.WfRightManager"%>
<%@page import="weaver.hrm.HrmUserVarify"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> 
<%@ page import="weaver.general.Util" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ taglib uri="/browserTag" prefix="brow"%>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page"/>
<%
	WfRightManager wfrm = new WfRightManager();
	boolean hasPermission = wfrm.hasPermission2(0, user, WfRightManager.OPERATION_CREATEDIR);

	if(!HrmUserVarify.checkUserRight("WorkflowManage:All", user) && !hasPermission)
	{
		response.sendRedirect("/notice/noright.jsp");    	
		return;
	}
%>
<%
	String perpage ="10";
	String imagefilename = "/images/hdReport_wev8.gif";
	String titlename = "NC数据同步";
	String needfav ="1";
	String needhelp ="";
%>
<HTML>
	<HEAD>
		<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
		<script language="javascript" src="/js/weaver_wev8.js"></script>
		<script language="javascript" defer="defer" src="/js/datetime_wev8.js"></script>
		<script language="javascript" defer="defer" src="/js/JSDateTime/WdatePicker_wev8.js"></script>
		<script language="javascript" defer="defer" src="/westvalley/common/js/common.js"></script>
		<script language="javascript" defer="defer" src="/westvalley/synNcData/js/init.js"></script>
		<script language=javascript> 
		</script>
	</head>
	<BODY>
		<%@ include file = "/systeminfo/TopTitle_wev8.jsp" %>
		<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
		<%
			//RCMenu += "{全部同步,javascript:synAllNCData(),_self} " ;
			//RCMenuHeight += RCMenuHeightStep ;
		%>	
		<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
		<jsp:include page="/systeminfo/commonTabHead.jsp">
		   <jsp:param name="mouldID" value="assest"/>
		   <jsp:param name="navName" value="<%=titlename %>"/>
		</jsp:include>
		<table id="topTitle" cellpadding="0" cellspacing="0">
			<tr>
				<td>
				</td>
				<td class="rightSearchSpan" style="text-align:right;">
					<!-- <input type="button" value="全部同步" class="e8_btn_top"  onclick="synAllNCData()"/> -->
					<span title="<%=SystemEnv.getHtmlLabelName(23036,user.getLanguage())%>" class="cornerMenu"></span>
				</td>
			</tr>
		</table>
		<div>
		<form id="frmmain" name=frmmain method=post action="" >
			<wea:layout type="2col" attributes="{expandAllGroup:true}">
				<wea:group context="同步列表">
					<wea:item>公司同步</wea:item>
					<wea:item>
						<div>
							<input id="ncCompanyBtn" type="button" value="同步" class="e8_btn_top" onclick="synNcCompany()"/>
							<span id="ncCompanyMsg"></span>
							<img id="ncCompanyImg" src="/westvalley/synNcData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>部门同步</wea:item>
					<wea:item>
						<div>
							<input id="ncDeptBtn" type="button" value="同步" class="e8_btn_top" onclick="synNcDept()"/>
							<span id="ncDeptMsg"></span>
							<img id="ncDeptImg" src="/westvalley/synNcData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>人员同步</wea:item>
					<wea:item>
						<div>
							<input id="ncPsnBtn" type="button" value="同步" class="e8_btn_top" onclick="synNcPsn()"/>
							<span id="ncPsnMsg"></span>
							<img id="ncPsnImg" src="/westvalley/synNcData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>客商同步</wea:item>
					<wea:item>
						<div>
							<input id="ncClientBtn" type="button" value="同步" class="e8_btn_top" onclick="synNcClient()"/>
							<span id="ncClientMsg"></span>
							<img id="ncClientImg" src="/westvalley/synNcData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>收支项目同步</wea:item>
					<wea:item>
						<div>
							<input id="ncIncomeBtn" type="button" value="同步" class="e8_btn_top" onclick="synNcIncome()"/>
							<span id="ncIncomeMsg"></span>
							<img id="ncIncomeImg" src="/westvalley/synNcData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
					<wea:item>交易类型同步</wea:item>
					<wea:item>
						<div>
							<input id="ncBillTypeBtn" type="button" value="同步" class="e8_btn_top" onclick="synNcBillType()"/>
							<span id="ncBillTypeMsg"></span>
							<img id="ncBillTypeImg" src="/westvalley/synNcData/img/loading.gif" style="display:none" title="同步数据中" />
						</div>
					</wea:item>
				</wea:group>
			</wea:layout>
		</form>	
		</div>
	</body>
</HTML>